home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Beta / Quicktime 2.0 Beta.iso / Programming Stuff / Sample Code / DTS Sample Code / MyMultipleMoviesApp ƒ / MyApplication.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-14  |  1.7 KB  |  69 lines  |  [TEXT/KAHL]

  1. /*
  2.     File:        MyApplication.h
  3.     
  4.     Contains:    My Application Shell.
  5.  
  6.     Written by:    John Wang
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <1>        03/14/94    JW        Re-Created for Universal Headers.
  13.  
  14.     To Do:
  15.     
  16. */
  17.  
  18. #ifdef THINK_C
  19. #define        applec
  20. #endif
  21.  
  22. //    Set the following according to your application's needs
  23. #define        kNEWDOCATSTARTUP    1    //    set to 1 if MyNew called at startup.  0 is not called.
  24. #define        kMYEVENTDEF            2    //    2 is per window.  1 is once per eventloop.  0 is never.
  25. #define        kMYIDLEDEF            2    //    2 is per window.  1 is once per eventloop.  0 is never.
  26.  
  27. #define        kMENU_COLLECTION        160
  28. #define        kMENU_MACADDRESATOM        2
  29. #define        kMENU_MACADDALL            3
  30. #define        kMENU_CROSSADDALL        6
  31. #define        kMENU_BOTHADDALL        9
  32.  
  33. #define        kMENU_MOVIES            161
  34.  
  35. #define        kALERT_ERROROPEN        160
  36. #define        kALERT_BADDOCUMENT        161
  37. #define        kALERT_CANTNEW            162
  38. #define        kALERT_CANTOPEN            163
  39. #define        kALERT_SELECTEDMOVIE    164
  40.  
  41. /* ------------------------------------------------------------------------- */
  42.  
  43. OSErr        MyInitialize(void);
  44. Boolean        MyEvent(WindowPtr theWindow, EventRecord *myEvent);
  45. void        MyIdle(WindowPtr theWindow);
  46. OSErr        MyDoCommand(short theMenu, short theItem);
  47. void        MyDoKeyDown(EventRecord *myEvent);
  48. void        MyDraw(WindowPtr theWindow);
  49. void        MyFinishup(void);
  50. long        MyYieldTime(long message);
  51. void        MyInContent(WindowPtr foundWindow, Point where);
  52. void        MyZoomWindow(WindowPtr foundWindow, short windowPart);
  53. void        MyAdjustMenus(void);
  54.  
  55. void        MyNew(void);
  56. void        MyOpen(FSSpec *theFSS);
  57. void        MyClose(void);
  58. void        MySave(void);
  59. void        MySaveAs(void);
  60. void        MyPageSetup(void);
  61. void        MyPrint(void);
  62.  
  63. void        MyUndo(void);
  64. void        MyCut(void);
  65. void        MyCopy(void);
  66. void        MyPaste(void);
  67. void        MyClear(void);
  68. void        MySelectAll(void);
  69.